﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Settings;
using Microsoft.Win32;

namespace centraldba_library.Admin
{
    public class settings_manager
    {
        public static string GetSettingValue(string settingName)
        {
            // Declare Local Variables
            string sAppPath, value;
            SettingsManager sm;

            // Determine the location of devenv
            sAppPath = (string)Registry.GetValue("REGPATH", "valueName", "defaultValue");

            // Get the SettingsManager
            sm = ExternalSettingsManager.CreateForApplication(sAppPath);

            // Determine the Settings Value
            value = "";

            // Release Reference
            sm = null;

            // Return the value
            return value;
        }
        
    }
}
